package com.jintu.portal.repository.mysql.dao;

import com.jintu.portal.pojo.entity.mysql.Report;
import com.jintu.portal.repository.mysql.mapper.ReportMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Slf4j
@Repository("reportDao")
public class ReportDao {

    @Resource
    private ReportMapper reportMapper;

    public Report queryReportByOrderIdAndUserId(String orderId, Integer userId) {
        return reportMapper.queryReportByOrderIdAndUserId(orderId, userId);
    }
}
